home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Science / Gnuplot 3.5 / docs / Makefile < prev    next >
Makefile  |  1993-11-03  |  4KB  |  159 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for GNUPLOT documentation
  3. #
  4. # Note that the top-level file for documentation is gnuplot.doc.
  5. # See README.
  6. #
  7. # To print manual:
  8. #    make gnuplot.dvi             (for latex)
  9. #    (print or view gnuplot.dvi)
  10. # OR
  11. #    make gnuplot.nroff           (for nroff)
  12. #    (print or view gnuplot.nroff)
  13. #   or
  14. #    make "TROFF=itroff" troff    (for troff; use your troff here)
  15. #
  16.  
  17. .NOEXPORT:
  18. SHELL = /bin/sh
  19.  
  20. srcdir = .
  21. VPATH = .
  22.  
  23. prefix = /usr/local
  24. exec_prefix = $(prefix)
  25. bindir = $(exec_prefix)/bin
  26. datadir = $(prefix)/lib
  27. mandir = $(prefix)/man
  28.  
  29. INSTALL = cp
  30. INSTALL_PROGRAM = $(INSTALL)
  31. INSTALL_DATA = $(INSTALL)
  32.  
  33. CC     = cc
  34. DEFS   =  -DREADLINE=1 -DNOCWDRC=1 -DX11=1 -DTERMIOS=1 -DGAMMA=gamma -DGETCWD=1 -DMEMCPY=1 -DMEMSET=1 -DUNIX=1 -DNOVFORK=1 -Dunix=1
  35. CFLAGS = -O2
  36. LDFLAGS = -s
  37. LIBS = 
  38.  
  39. MAKEINFO = makeinfo
  40.  
  41. # substitute your troff command (and any flags) for this one
  42. TROFF=troff
  43.  
  44. # substitute your DVI to PostScript conversion program here
  45. DVIPS=dvips
  46.  
  47. # default is what is needed for interactive gnuplot
  48. default: gnuplot.hlp gnuplot.gih
  49.  
  50. ### [tn]roff documentation
  51. troff: gnuplot.ms titlepag.ms
  52.     tbl $(srcdir)/gnuplot.ms | eqn | $(TROFF) -ms
  53.  
  54. nroff: gnuplot.nroff
  55.  
  56. gnuplot.nroff: gnuplot.ms titlepag.ms
  57.     tbl $(srcdir)/gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff
  58.  
  59. ms: gnuplot.ms
  60.  
  61. gnuplot.ms: doc2ms gnuplot.doc
  62.     ./doc2ms $(srcdir)/gnuplot.doc gnuplot.ms
  63.  
  64. doc2ms: doc2ms.o
  65.     $(CC) -o $@ doc2ms.o $(LDFLAGS) $(LIBS)
  66.  
  67. ### LaTeX documentation
  68. tex: gnuplot.tex
  69.  
  70. gnuplot.tex: doc2tex gnuplot.doc
  71.     ./doc2tex $(srcdir)/gnuplot.doc gnuplot.tex
  72.  
  73. # this is how to make DVI files
  74. dvi: gnuplot.dvi gpcard.dvi
  75.  
  76. gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
  77.     latex gnuplot
  78.     latex gnuplot
  79.  
  80. gpcard.dvi: gpcard.tex
  81.     tex gpcard
  82.  
  83. # this is how to make PostScript files
  84. # if pslatex has been installed, add "times" to titlepage.tex
  85. ps: gnuplot.ps gpcard.ps
  86.  
  87. gnuplot.ps: gnuplot.dvi
  88.     $(DVIPS) gnuplot
  89.  
  90. gpcard.ps: gpcard.dvi
  91.     $(DVIPS) gpcard
  92.  
  93. doc2tex: doc2tex.o
  94.     $(CC) -o $@ doc2tex.o $(LDFLAGS) $(LIBS)
  95.  
  96. # this is how to make gnuplot.hlp
  97. hlp: gnuplot.hlp
  98.  
  99. gnuplot.hlp: doc2hlp gnuplot.doc
  100.     ./doc2hlp $(srcdir)/gnuplot.doc gnuplot.hlp
  101.  
  102. # this is how to make gnuplot.gih
  103. gih: gnuplot.gih
  104.  
  105. gnuplot.gih: doc2gih gnuplot.doc
  106.     ./doc2gih $(srcdir)/gnuplot.doc gnuplot.gih
  107.  
  108. doc2gih: doc2gih.o
  109.     $(CC) -o $@ doc2gih.o $(LDFLAGS) $(LIBS)
  110.  
  111. # this is how to make Info documentation
  112. info: gnuplot.info
  113.  
  114. gnuplot.info: gnuplot.doc
  115.     perl $(srcdir)/doc2info.pl $(srcdir)/gnuplot.doc > gpltinfo.tex
  116.     $(MAKEINFO) --fill-column=80 gpltinfo.tex
  117.     rm -f gpltinfo.tex
  118.  
  119. tutorial: latextut/tutorial.tex
  120.     ( cd latextut; $(MAKE) )
  121.  
  122. # this is how to check the gnuplot.doc file
  123. check: checkdoc gnuplot.doc
  124.     ./checkdoc < $(srcdir)/gnuplot.doc
  125.  
  126. checkdoc: checkdoc.o
  127.     $(CC) -o $@ checkdoc.o $(LDFLAGS) $(LIBS)
  128.  
  129. # For Unix and MSDOS only
  130. install: gnuplot.gih
  131.     $(INSTALL_DATA) gnuplot.gih $(datadir)/gnuplot.gih
  132.  
  133. uninstall:
  134.     rm -f $(datadir)/gnuplot.gih
  135.  
  136. # for VMS only
  137. install-vms: gnuplot.hlp
  138.     $(INSTALL_DATA) gnuplot.hlp $(datadir)/gnuplot.hlp
  139.  
  140. # remove all derived files
  141. clean:
  142.     rm -f doc2ms gnuplot.nroff gnuplot.ms \
  143.               doc2tex gnuplot.tex gnuplot.dvi \
  144.               gnuplot.aux gnuplot.log gnuplot.toc \
  145.               gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
  146.               doc2hlp gnuplot.hlp \
  147.               doc2gih gnuplot.gih \
  148.               checkdoc *.o core a.out \
  149.               gnuplot.info* gpltinfo.tex
  150.     ( cd latextut; $(MAKE) clean )
  151.  
  152. mostlyclean: clean
  153.  
  154. distclean: clean
  155.     rm -f Makefile
  156.  
  157. realclean: distclean
  158.     rm -f TAGS
  159.